package com.zjs.kylin.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auth 贾惠有
 * @time 2020/10/28 14:10
 * @desc
 */
@RestController
@RefreshScope
public class TestController {
    @Value("${user.name}")
    String userName;
    @Value("${user.age}")
    int age;
    @GetMapping("test")
    public String test(){
        System.out.println(userName  + age);
        return "测试成功";
    }
}
